|
MOVE SPRITE
This command will move the sprite a specified distance.
MOVE SPRITE Sprite Number, Velocity
Sprite Number
Integer
The sprite number
Velocity
Float
Move the sprite the specified distance
This command does not return a value.
Used in combination with the ROTATE SPRITE command a very simple top-down player character can be achieved very easily. The velocity must be a real value.
load image "manwalking.bmp",1
cls
sprite 1,100,100,1
for t=0 to 359
rotate sprite 1,t
move sprite 1,1
next t
do
loop
end
SPRITE Commands Menu
Index
|